<!doctype html>
<html lang="zh">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	
	<link rel="stylesheet" type="text/css" href="css/normalize.css" />
	<link rel="stylesheet" type="text/css" href="css/default.css">
	<link rel="stylesheet" href="css/swipebox.css">
	<style type="text/css">
		.htmleaf-icon,.htmleaf-header h1 span{color: #fff;}
		.container{width: 40%;margin: 30px auto;}
		.container:nth-child(even){background:whitesmoke}
		.container:nth-child(odd){background:#fff}
		#box-container{margin:0;padding:0}
		.box{list-style-type:none;float:left;margin-bottom:1rem;margin-left:1%;margin-right:1%;width:48%}
		.box:nth-child(2n+1){clear:both;margin-left:0}
		.box:nth-child(2n+0){margin-right:0}
		.box a{display:block;width:100%;height:auto}
		.box a img{-webkit-back-visibility:hidden;display:block;width:100%;height:auto;vertical-align:bottom}
	</style>
	<!--[if IE]>
		<script src="http://libs.useso.com/js/html5shiv/3.7/html5shiv.min.js"></script>
	<![endif]-->
</head>
<body>
	<div class="htmleaf-container">
	
		<section id="exemple" class="container">
		<div class="wrap small-width">
			<div id="try"></div>
			<ul id="box-container">
				<li class="box">
					<a href="img/1.jpg" class="swipebox">
						<img src="img/1.jpg" alt="image">
					</a>
				</li>
				<li class="box">
					<a href="img/2.jpg" class="swipebox">
						<img src="img/2.jpg" alt="image">
					</a>
				</li>
				<li class="box">
					<a href="img/3.jpg" class="swipebox">
						<img src="img/3.jpg" alt="image">
					</a>
				</li>
				<li class="box">
					<a href="img/4.jpg" class="swipebox">
						<img src="img/4.jpg" alt="image">
					</a>
				</li>
			</ul>
		</div>
	</section>
	</div>
	
	<script src="js/ios-orientationchange-fix.js"></script>
	<script src="js/jquery-2.1.0.min.js"></script>
	<script src="js/jquery.swipebox.js"></script>
	<script type="text/javascript">
	$( document ).ready(function() {

			/* Basic Gallery */
			$( '.swipebox' ).swipebox();
			
			/* Video */
			$( '.swipebox-video' ).swipebox();

			/* Dynamic Gallery */
			$( '#gallery' ).click( function( e ) {
				e.preventDefault();
				$.swipebox( [
					{ href : 'http://swipebox.csag.co/mages/image-1.jpg', title : 'My Caption' },
					{ href : 'http://swipebox.csag.co/images/image-2.jpg', title : 'My Second Caption' }
				] );
			} );

      });
	</script>
</body>
</html>